home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / ColorSync 2.6 Mac SDK / Interfaces / CMMComponent.a < prev    next >
Encoding:
Text File  |  1999-05-07  |  16.1 KB  |  565 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CMMComponent.a
  3. ;
  4. ;    Contains:    ColorSync CMM Component API
  5. ;
  6. ;    Version:    Technology:    ColorSync 2.6
  7. ;                Release:    ColorSync 2.6 SDK for use with Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__CMMCOMPONENT__') = 'UNDEFINED' THEN
  18. __CMMCOMPONENT__ SET 1
  19.  
  20.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  21.     include 'Quickdraw.a'
  22.     ENDIF
  23.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  24.     include 'Components.a'
  25.     ENDIF
  26.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  27.     include 'CMApplication.a'
  28.     ENDIF
  29.  
  30.  
  31. CMMInterfaceVersion                EQU        1
  32.  
  33. ;  Component function selectors 
  34.  
  35.                                                             ; Required 
  36. kNCMMInit                        EQU        6
  37. kCMMMatchColors                    EQU        1
  38. kCMMCheckColors                    EQU        2                    ;
  39.                                                             ;
  40.                                                             ; Optional 
  41. kCMMValidateProfile                EQU        8
  42. kCMMMatchBitmap                    EQU        9
  43. kCMMCheckBitmap                    EQU        10
  44. kCMMMatchPixMap                    EQU        3
  45. kCMMCheckPixMap                    EQU        4
  46. kCMMConcatenateProfiles            EQU        5
  47. kCMMConcatInit                    EQU        7
  48. kCMMNewLinkProfile                EQU        16
  49. kNCMMConcatInit                    EQU        18
  50. kNCMMNewLinkProfile                EQU        19
  51. kCMMGetPS2ColorSpace            EQU        11
  52. kCMMGetPS2ColorRenderingIntent    EQU        12
  53. kCMMGetPS2ColorRendering        EQU        13
  54. kCMMGetPS2ColorRenderingVMSize    EQU        17                    ;
  55.                                                             ;
  56.                                                             ; obsolete with ColorSync 2.5 
  57. kCMMFlattenProfile                EQU        14
  58. kCMMUnflattenProfile            EQU        15                    ;
  59.                                                             ;
  60.                                                             ; obsolete with ColorSync 2.6 
  61. kCMMInit                        EQU        0
  62. kCMMGetNamedColorInfo            EQU        70
  63. kCMMGetNamedColorValue            EQU        71
  64. kCMMGetIndNamedColorValue        EQU        72
  65. kCMMGetNamedColorIndex            EQU        73
  66. kCMMGetNamedColorName            EQU        74
  67.  
  68. kCMMOpen                        EQU        -1
  69. kCMMClose                        EQU        -2
  70. kCMMGetInfo                        EQU        -4
  71.     IF TARGET_OS_MAC THEN
  72. ; typedef ComponentInstance             CMMComponentInst
  73.  
  74. ;
  75. ; pascal CMError NCMMInit(CMMComponentInst cmm, CMProfileRef srcProfile, CMProfileRef dstProfile)
  76. ;
  77.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  78.         Macro
  79.         _NCMMInit
  80.             move.l              #$00080006,-(sp)
  81.             moveq               #0,D0
  82.             dc.w                $A82A
  83.         EndM
  84.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  85.         IMPORT_CFM_FUNCTION NCMMInit
  86.     ENDIF
  87.  
  88. ;
  89. ; pascal CMError CMMInit(CMMComponentInst cmm, CMProfileHandle srcProfile, CMProfileHandle dstProfile)
  90. ;
  91.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  92.         Macro
  93.         _CMMInit
  94.             move.l              #$00080000,-(sp)
  95.             moveq               #0,D0
  96.             dc.w                $A82A
  97.         EndM
  98.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  99.         IMPORT_CFM_FUNCTION CMMInit
  100.     ENDIF
  101.  
  102. ;
  103. ; pascal CMError CMMMatchColors(CMMComponentInst cmm, CMColor *colors, UInt32 count)
  104. ;
  105.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  106.         Macro
  107.         _CMMMatchColors
  108.             move.l              #$00080001,-(sp)
  109.             moveq               #0,D0
  110.             dc.w                $A82A
  111.         EndM
  112.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  113.         IMPORT_CFM_FUNCTION CMMMatchColors
  114.     ENDIF
  115.  
  116. ;
  117. ; pascal CMError CMMCheckColors(CMMComponentInst cmm, CMColor *colors, UInt32 count, UInt32 *result)
  118. ;
  119.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  120.         Macro
  121.         _CMMCheckColors
  122.             move.l              #$000C0002,-(sp)
  123.             moveq               #0,D0
  124.             dc.w                $A82A
  125.         EndM
  126.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  127.         IMPORT_CFM_FUNCTION CMMCheckColors
  128.     ENDIF
  129.  
  130. ;
  131. ; pascal CMError CMMValidateProfile(CMMComponentInst cmm, CMProfileRef prof, Boolean *valid)
  132. ;
  133.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  134.         Macro
  135.         _CMMValidateProfile
  136.             move.l              #$00080008,-(sp)
  137.             moveq               #0,D0
  138.             dc.w                $A82A
  139.         EndM
  140.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  141.         IMPORT_CFM_FUNCTION CMMValidateProfile
  142.     ENDIF
  143.  
  144. ;
  145. ; pascal CMError CMMFlattenProfile(CMMComponentInst cmm, CMProfileRef prof, UInt32 flags, CMFlattenUPP proc, void *refCon)
  146. ;
  147.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  148.         Macro
  149.         _CMMFlattenProfile
  150.             move.l              #$0010000E,-(sp)
  151.             moveq               #0,D0
  152.             dc.w                $A82A
  153.         EndM
  154.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  155.         IMPORT_CFM_FUNCTION CMMFlattenProfile
  156.     ENDIF
  157.  
  158. ;
  159. ; pascal CMError CMMUnflattenProfile(CMMComponentInst cmm, FSSpec *resultFileSpec, CMFlattenUPP proc, void *refCon)
  160. ;
  161.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  162.         Macro
  163.         _CMMUnflattenProfile
  164.             move.l              #$000C000F,-(sp)
  165.             moveq               #0,D0
  166.             dc.w                $A82A
  167.         EndM
  168.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  169.         IMPORT_CFM_FUNCTION CMMUnflattenProfile
  170.     ENDIF
  171.  
  172. ;
  173. ; pascal CMError CMMMatchBitmap(CMMComponentInst cmm, CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
  174. ;
  175.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  176.         Macro
  177.         _CMMMatchBitmap
  178.             move.l              #$00100009,-(sp)
  179.             moveq               #0,D0
  180.             dc.w                $A82A
  181.         EndM
  182.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  183.         IMPORT_CFM_FUNCTION CMMMatchBitmap
  184.     ENDIF
  185.  
  186. ;
  187. ; pascal CMError CMMCheckBitmap(CMMComponentInst cmm, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
  188. ;
  189.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  190.         Macro
  191.         _CMMCheckBitmap
  192.             move.l              #$0010000A,-(sp)
  193.             moveq               #0,D0
  194.             dc.w                $A82A
  195.         EndM
  196.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  197.         IMPORT_CFM_FUNCTION CMMCheckBitmap
  198.     ENDIF
  199.  
  200. ;
  201. ; pascal CMError CMMMatchPixMap(CMMComponentInst cmm, PixMap *pixMap, CMBitmapCallBackUPP progressProc, void *refCon)
  202. ;
  203.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  204.         Macro
  205.         _CMMMatchPixMap
  206.             move.l              #$000C0003,-(sp)
  207.             moveq               #0,D0
  208.             dc.w                $A82A
  209.         EndM
  210.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  211.         IMPORT_CFM_FUNCTION CMMMatchPixMap
  212.     ENDIF
  213.  
  214. ;
  215. ; pascal CMError CMMCheckPixMap(CMMComponentInst cmm, const PixMap *pixMap, CMBitmapCallBackUPP progressProc, BitMap *bitMap, void *refCon)
  216. ;
  217.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  218.         Macro
  219.         _CMMCheckPixMap
  220.             move.l              #$00100004,-(sp)
  221.             moveq               #0,D0
  222.             dc.w                $A82A
  223.         EndM
  224.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  225.         IMPORT_CFM_FUNCTION CMMCheckPixMap
  226.     ENDIF
  227.  
  228. ;
  229. ; pascal CMError CMMConcatInit(CMMComponentInst cmm, CMConcatProfileSet *profileSet)
  230. ;
  231.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  232.         Macro
  233.         _CMMConcatInit
  234.             move.l              #$00040007,-(sp)
  235.             moveq               #0,D0
  236.             dc.w                $A82A
  237.         EndM
  238.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  239.         IMPORT_CFM_FUNCTION CMMConcatInit
  240.     ENDIF
  241.  
  242. ;
  243. ; pascal CMError NCMMConcatInit(CMMComponentInst cmm, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
  244. ;
  245.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  246.         Macro
  247.         _NCMMConcatInit
  248.             move.l              #$000C0012,-(sp)
  249.             moveq               #0,D0
  250.             dc.w                $A82A
  251.         EndM
  252.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  253.         IMPORT_CFM_FUNCTION NCMMConcatInit
  254.     ENDIF
  255.  
  256. ;
  257. ; pascal CMError CMMNewLinkProfile(CMMComponentInst cmm, CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
  258. ;
  259.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  260.         Macro
  261.         _CMMNewLinkProfile
  262.             move.l              #$000C0010,-(sp)
  263.             moveq               #0,D0
  264.             dc.w                $A82A
  265.         EndM
  266.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  267.         IMPORT_CFM_FUNCTION CMMNewLinkProfile
  268.     ENDIF
  269.  
  270. ;
  271. ; pascal CMError NCMMNewLinkProfile(CMMComponentInst cmm, CMProfileRef prof, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
  272. ;
  273.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  274.         Macro
  275.         _NCMMNewLinkProfile
  276.             move.l              #$00100013,-(sp)
  277.             moveq               #0,D0
  278.             dc.w                $A82A
  279.         EndM
  280.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  281.         IMPORT_CFM_FUNCTION NCMMNewLinkProfile
  282.     ENDIF
  283.  
  284. ;
  285. ; pascal CMError CMMGetPS2ColorSpace(CMMComponentInst cmm, CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  286. ;
  287.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  288.         Macro
  289.         _CMMGetPS2ColorSpace
  290.             move.l              #$0010000B,-(sp)
  291.             moveq               #0,D0
  292.             dc.w                $A82A
  293.         EndM
  294.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  295.         IMPORT_CFM_FUNCTION CMMGetPS2ColorSpace
  296.     ENDIF
  297.  
  298. ;
  299. ; pascal CMError CMMGetPS2ColorRenderingIntent(CMMComponentInst cmm, CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  300. ;
  301.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  302.         Macro
  303.         _CMMGetPS2ColorRenderingIntent
  304.             move.l              #$0010000C,-(sp)
  305.             moveq               #0,D0
  306.             dc.w                $A82A
  307.         EndM
  308.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  309.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingIntent
  310.     ENDIF
  311.  
  312. ;
  313. ; pascal CMError CMMGetPS2ColorRendering(CMMComponentInst cmm, CMProfileRef srcProf, CMProfileRef dstProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  314. ;
  315.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  316.         Macro
  317.         _CMMGetPS2ColorRendering
  318.             move.l              #$0014000D,-(sp)
  319.             moveq               #0,D0
  320.             dc.w                $A82A
  321.         EndM
  322.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  323.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRendering
  324.     ENDIF
  325.  
  326. ;
  327. ; pascal CMError CMMGetPS2ColorRenderingVMSize(CMMComponentInst cmm, CMProfileRef srcProf, CMProfileRef dstProf, UInt32 *vmSize)
  328. ;
  329.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  330.         Macro
  331.         _CMMGetPS2ColorRenderingVMSize
  332.             move.l              #$000C0011,-(sp)
  333.             moveq               #0,D0
  334.             dc.w                $A82A
  335.         EndM
  336.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  337.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingVMSize
  338.     ENDIF
  339.  
  340. ;
  341. ; pascal CMError CMMConcatenateProfiles(CMMComponentInst cmm, CMProfileHandle thru, CMProfileHandle dst, CMProfileHandle *newDst)
  342. ;
  343.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  344.         Macro
  345.         _CMMConcatenateProfiles
  346.             move.l              #$000C0005,-(sp)
  347.             moveq               #0,D0
  348.             dc.w                $A82A
  349.         EndM
  350.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  351.         IMPORT_CFM_FUNCTION CMMConcatenateProfiles
  352.     ENDIF
  353.  
  354. ;
  355. ; pascal CMError CMMGetNamedColorInfo(CMMComponentInst cmm, CMProfileRef srcProf, UInt32 *deviceChannels, OSType *deviceColorSpace, OSType *PCSColorSpace, UInt32 *count, StringPtr prefix, StringPtr suffix)
  356. ;
  357.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  358.         Macro
  359.         _CMMGetNamedColorInfo
  360.             move.l              #$001C0046,-(sp)
  361.             moveq               #0,D0
  362.             dc.w                $A82A
  363.         EndM
  364.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  365.         IMPORT_CFM_FUNCTION CMMGetNamedColorInfo
  366.     ENDIF
  367.  
  368. ;
  369. ; pascal CMError CMMGetNamedColorValue(CMMComponentInst cmm, CMProfileRef prof, StringPtr name, CMColor *deviceColor, CMColor *PCSColor)
  370. ;
  371.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  372.         Macro
  373.         _CMMGetNamedColorValue
  374.             move.l              #$00100047,-(sp)
  375.             moveq               #0,D0
  376.             dc.w                $A82A
  377.         EndM
  378.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  379.         IMPORT_CFM_FUNCTION CMMGetNamedColorValue
  380.     ENDIF
  381.  
  382. ;
  383. ; pascal CMError CMMGetIndNamedColorValue(CMMComponentInst cmm, CMProfileRef prof, UInt32 index, CMColor *deviceColor, CMColor *PCSColor)
  384. ;
  385.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  386.         Macro
  387.         _CMMGetIndNamedColorValue
  388.             move.l              #$00100048,-(sp)
  389.             moveq               #0,D0
  390.             dc.w                $A82A
  391.         EndM
  392.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  393.         IMPORT_CFM_FUNCTION CMMGetIndNamedColorValue
  394.     ENDIF
  395.  
  396. ;
  397. ; pascal CMError CMMGetNamedColorIndex(CMMComponentInst cmm, CMProfileRef prof, StringPtr name, UInt32 *index)
  398. ;
  399.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  400.         Macro
  401.         _CMMGetNamedColorIndex
  402.             move.l              #$000C0049,-(sp)
  403.             moveq               #0,D0
  404.             dc.w                $A82A
  405.         EndM
  406.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  407.         IMPORT_CFM_FUNCTION CMMGetNamedColorIndex
  408.     ENDIF
  409.  
  410. ;
  411. ; pascal CMError CMMGetNamedColorName(CMMComponentInst cmm, CMProfileRef prof, UInt32 index, StringPtr name)
  412. ;
  413.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  414.         Macro
  415.         _CMMGetNamedColorName
  416.             move.l              #$000C004A,-(sp)
  417.             moveq               #0,D0
  418.             dc.w                $A82A
  419.         EndM
  420.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  421.         IMPORT_CFM_FUNCTION CMMGetNamedColorName
  422.     ENDIF
  423.  
  424.     IF OLDROUTINENAMES THEN
  425.     ENDIF    ; OLDROUTINENAMES
  426.     ENDIF    ; TARGET_OS_MAC
  427.     IF TARGET_OS_WIN32 THEN
  428. ;
  429. ; pascal CMError CMMOpen(UInt32 *cmmStorage, void *hInstance)
  430. ;
  431.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  432.         IMPORT_CFM_FUNCTION CMMOpen
  433.     ENDIF
  434.  
  435. ;
  436. ; pascal CMError CMMClose(UInt32 *cmmStorage)
  437. ;
  438.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  439.         IMPORT_CFM_FUNCTION CMMClose
  440.     ENDIF
  441.  
  442. ;
  443. ; pascal CMError CMMGetCMMInfo(UInt32 *cmmStorage, CMMInfo *info)
  444. ;
  445.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  446.         IMPORT_CFM_FUNCTION CMMGetCMMInfo
  447.     ENDIF
  448.  
  449. ;
  450. ; pascal CMError NCMMInit(UInt32 *cmmStorage, CMProfileRef srcProfile, CMProfileRef dstProfile)
  451. ;
  452.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  453.         IMPORT_CFM_FUNCTION NCMMInit
  454.     ENDIF
  455.  
  456. ;
  457. ; pascal CMError CMMMatchColors(UInt32 *cmmStorage, CMColor *colors, UInt32 count)
  458. ;
  459.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  460.         IMPORT_CFM_FUNCTION CMMMatchColors
  461.     ENDIF
  462.  
  463. ;
  464. ; pascal CMError CMMCheckColors(UInt32 *cmmStorage, CMColor *colors, UInt32 count, UInt32 *result)
  465. ;
  466.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  467.         IMPORT_CFM_FUNCTION CMMCheckColors
  468.     ENDIF
  469.  
  470. ;
  471. ; pascal CMError CMMValidateProfile(UInt32 *cmmStorage, CMProfileRef prof, Boolean *valid)
  472. ;
  473.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  474.         IMPORT_CFM_FUNCTION CMMValidateProfile
  475.     ENDIF
  476.  
  477. ;
  478. ; pascal CMError CMMMatchBitmap(UInt32 *cmmStorage, CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
  479. ;
  480.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  481.         IMPORT_CFM_FUNCTION CMMMatchBitmap
  482.     ENDIF
  483.  
  484. ;
  485. ; pascal CMError CMMCheckBitmap(UInt32 *cmmStorage, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
  486. ;
  487.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  488.         IMPORT_CFM_FUNCTION CMMCheckBitmap
  489.     ENDIF
  490.  
  491. ;
  492. ; pascal CMError CMMMatchPixMap(UInt32 *cmmStorage, PixMap *pixMap, CMBitmapCallBackUPP progressProc, void *refCon)
  493. ;
  494.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  495.         IMPORT_CFM_FUNCTION CMMMatchPixMap
  496.     ENDIF
  497.  
  498. ;
  499. ; pascal CMError CMMCheckPixMap(UInt32 *cmmStorage, const PixMap *pixMap, CMBitmapCallBackUPP progressProc, BitMap *bitMap, void *refCon)
  500. ;
  501.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  502.         IMPORT_CFM_FUNCTION CMMCheckPixMap
  503.     ENDIF
  504.  
  505. ;
  506. ; pascal CMError CMMConcatInit(UInt32 *cmmStorage, CMConcatProfileSet *profileSet)
  507. ;
  508.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  509.         IMPORT_CFM_FUNCTION CMMConcatInit
  510.     ENDIF
  511.  
  512. ;
  513. ; pascal CMError NCMMConcatInit(UInt32 *cmmStorage, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
  514. ;
  515.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  516.         IMPORT_CFM_FUNCTION NCMMConcatInit
  517.     ENDIF
  518.  
  519. ;
  520. ; pascal CMError CMMNewLinkProfile(UInt32 *cmmStorage, CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
  521. ;
  522.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  523.         IMPORT_CFM_FUNCTION CMMNewLinkProfile
  524.     ENDIF
  525.  
  526. ;
  527. ; pascal CMError NCMMNewLinkProfile(UInt32 *cmmStorage, CMProfileRef prof, NCMConcatProfileSet *profileSet, CMConcatCallBackUPP proc, void *refCon)
  528. ;
  529.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  530.         IMPORT_CFM_FUNCTION NCMMNewLinkProfile
  531.     ENDIF
  532.  
  533. ;
  534. ; pascal CMError CMMGetPS2ColorSpace(UInt32 *cmmStorage, CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  535. ;
  536.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  537.         IMPORT_CFM_FUNCTION CMMGetPS2ColorSpace
  538.     ENDIF
  539.  
  540. ;
  541. ; pascal CMError CMMGetPS2ColorRenderingIntent(UInt32 *cmmStorage, CMProfileRef srcProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  542. ;
  543.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  544.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingIntent
  545.     ENDIF
  546.  
  547. ;
  548. ; pascal CMError CMMGetPS2ColorRendering(UInt32 *cmmStorage, CMProfileRef srcProf, CMProfileRef dstProf, UInt32 flags, CMFlattenUPP proc, void *refCon)
  549. ;
  550.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  551.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRendering
  552.     ENDIF
  553.  
  554. ;
  555. ; pascal CMError CMMGetPS2ColorRenderingVMSize(UInt32 *cmmStorage, CMProfileRef srcProf, CMProfileRef dstProf, UInt32 *vmSize)
  556. ;
  557.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  558.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingVMSize
  559.     ENDIF
  560.  
  561.  
  562.     ENDIF    ; TARGET_OS_WIN32
  563.     ENDIF ; __CMMCOMPONENT__ 
  564.  
  565.